const codeService = require("@/server/code");
const { sendCode } = require("@/utils/r/result");

const code = {
  async CreateCode(req, res) {
    const { email } = req.query;
    sendCode(res, await codeService.CreateCode(email));
  },
};

module.exports = code;
